<?php defined('SYSPATH') OR die('No direct access allowed.');

class TextArea_Plugin extends WB_FormItem {
	
	public function __construct($name='', $params=array())
	{
		parent::__construct($name, $params);
	}

	
	/**
	 * Renders the form element
	 * 
	 * @return string
	 */
	public function render_item()
	{
		$str = $this->prefix;
		$str .= form::label($this->name, $this->label);
		$str .= form::textarea($this->name, $this->value, html::attributes($this->attributes));
		if ($this->description) $str .= '<span class="description">'.$this->description.'</span>';
		$str .= $this->suffix;
		
		return $str;
	}
	
}

//End of TextArea_Plugin Library